//
//  Scan_VC.h
//  仿支付宝
//
//  Created by 张国兵 on 15/12/9.
//  Copyright © 2015年 zhangguobing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@class Scan_VC;
@protocol Scan_VCDelegate <NSObject>

//-(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:(NSArray *)metadataObjects fromConnection:(AVCaptureConnection *)connection

/**
 *  扫描获取的信息
 *
 *  @param Scan           控制器
 *  @param metadataObject 扫描得到的信息
 */
- (void)Scan_VC:(Scan_VC *)Scan info:(AVMetadataMachineReadableCodeObject *)metadataObject;
/**
 *  相册里获取的信息
 *
 *  @param Scan    控制器
 *  @param feature  扫描得到的信息
 */
- (void)Scan_VC:(Scan_VC *)Scan string:(CIQRCodeFeature *)feature;
@end

@interface Scan_VC : UIViewController
@property (copy, nonatomic) NSString *navIndex, *nowStoreID;
@property (assign,nonatomic) id<Scan_VCDelegate> delegate;
@property (nonatomic, strong) UIView *scanWindow;
@property (nonatomic, strong) AVCaptureSession *session;
@property (strong, nonatomic) NSString *type;
@property (strong, nonatomic) NSString *comefrom;

-(void)setupNavView;
-(void)setupTipTitleView;
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info;

@end
// 版权属于原作者
// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网站: Code4App.com
